package com.cnap.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 *----
 * @data 202211
 * @version 1.0
 * @describe
 * @author xc
 * ----
 */
@Configuration
@EnableScheduling
public class ScheduleConfig {

    @Value("${intelligent.active}")
    private boolean active;

    @Value("${intelligent.cron}")
    private String cron;

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    public String getCron() {
        return cron;
    }

    public void setCron(String cron) {
        this.cron = cron;
    }
}
